package com.ruoyi.project.system.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.project.system.domain.SysBlacklist;
import com.ruoyi.project.system.mapper.SysBlacklistMapper;
import com.ruoyi.project.system.service.ISysBlacklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-22
 */
@Service
public class SysBlacklistServiceImpl implements ISysBlacklistService
{
    @Autowired
    private SysBlacklistMapper sysBlacklistMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysBlacklist selectSysBlacklistById(Long id)
    {
        return sysBlacklistMapper.selectSysBlacklistById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysBlacklist 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysBlacklist> selectSysBlacklistList(SysBlacklist sysBlacklist)
    {
        return sysBlacklistMapper.selectSysBlacklistList(sysBlacklist);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysBlacklist 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysBlacklist(SysBlacklist sysBlacklist)
    {
        sysBlacklist.setCreateTime(DateUtils.getNowDate());
        return sysBlacklistMapper.insertSysBlacklist(sysBlacklist);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysBlacklist 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysBlacklist(SysBlacklist sysBlacklist)
    {
        sysBlacklist.setUpdateTime(DateUtils.getNowDate());
        return sysBlacklistMapper.updateSysBlacklist(sysBlacklist);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysBlacklistByIds(Long[] ids)
    {
        return sysBlacklistMapper.deleteSysBlacklistByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysBlacklistById(Long id)
    {
        return sysBlacklistMapper.deleteSysBlacklistById(id);
    }
}
